<?php
namespace app\admin\controller;
use think\Controller;
use think\Db;
class Company extends Controller
{
    // 公司管理页
    public function index()
    {
        $res = Db::table('company')
                ->where('company_status',0)
                ->order('company_id desc')
                ->select();
        //  dump($res);
        //  exit;
        $this->assign('res',$res);
        return $this->fetch();
    }
    // 公司详情页
    public function gsdetails($company_id)
    {
        $res=Db::table('company')->where('company_id',$company_id)->where('company_status',0)->select();
        $this->assign("res",$res);
        // dump($res);
        //  die;
        return $this->fetch();
    }
}
